/*
 * @Author:  dongdong.wu
 * @Date: 2021-03-15 14:00:23
 * @Description: table 需要的分页组件
 */
// 渲染分页组件
const renderPage = function(h) {
  if (this.isPage) {
    return h(
      "div",
      {
        class: "ele-table_pagination"
      },
      [
        h("el-pagination", {
          props: {
            currentPage: this.page,
            pageSize: this.rows,
            pagerCount: this.pagerCount,
            layout: this.layout,
            total: Number(this.total),
            pageSizes: [15, 30, 50, 100, 500]
          },
          on: {
            "size-change": this.handleSizeChange,
            "current-change": this.handlePageChange
          }
        })
      ]
    );
  }
};
export default renderPage;
